package cn.zhizihua.service;

import cn.zhizihua.query.BaseQuery;
import cn.zhizihua.vo.ResultBean;

import java.util.List;

/**
 * 通用service接口
 * @param <T>
 */
public interface IBaseService<T>{

    ResultBean save(T t);
    ResultBean add(T t);
    ResultBean update(T t);
    ResultBean delete(Integer id);
    ResultBean getById(Integer id);
    ResultBean getAll(BaseQuery baseQuery);
    ResultBean batchDel(List<Integer> ids);
}
